load("@aspect_rules_js//js:defs.bzl", "js_binary")
load("//tools:defaults.bzl", "ts_project")

package(default_visibility = ["//visibility:public"])

ts_project(
    name = "extract_tokens_lib",
    srcs = glob(["**/*.ts"]),
    tsconfig = "//tools:tsconfig",
    deps = [
        "//:node_modules/sass",
        "//tools/highlight-files:sources",
    ],
)

js_binary(
    name = "extract-tokens",
    data = [
        ":extract_tokens_lib",
    ],
    entry_point = ":extract-tokens.js",
)
